﻿using System;
using HP.Cachalote.Services;
using HP.Cachalote.Services.Interfaces;

namespace HP.Cachalote.WPF.Model
{
    public class DataService : IDataService
    {
        public void GetData(Action<DataItem, Exception> callback)
        {
            // Use this to connect to the actual data service

            var item = new DataItem("Welcome to MVVM Light");
            callback(item, null);
        }

        public void GetServiceFactory(Action<IServiceFactory, Exception> callback)
        {
            var serviceFactory = new ServiceFactory();
            callback(serviceFactory, null);
        }
    }
}